package com.miao.im.service.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/18 13:56
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChatMessage {
    private Long fromUserId;
    private String fromUserNickname;
    private String fromUserAvatar;
    /**客户端生成的消息序号*/
    private Long sequence;
    /**目标id,可能是群，可能是个人*/
    private Long targetId;
    private String targetName;
    private String targetAvatar;
    /**目标类型 {@link com.miao.im.common.enums.TargetType}*/
    private Integer targetType;
    /**消息类型 {@link com.miao.im.common.enums.MediaMsgType}*/
    private Integer mediaType;
    /**消息内容*/
    private String content;
    /**消息发送时间*/
    private LocalDateTime sendTime;
    /**额外扩展字段*/
    private String expand;
}
